#
# build all lex sources
#

file(GLOB_RECURSE  lexdemo_src  *.l)


set(PROG_3_37   lex0337)
FLEX_TARGET( ${PROG_3_37} example3.37.l
        ${MY_BIN_PATH}/${PROG_3_37}.c
)
add_executable(${PROG_3_37}
        ${MY_BIN_PATH}/${PROG_3_37}.c
)
set_target_properties(${PROG_3_37} PROPERTIES
        RUNTIME_OUTPUT_DIRECTORY          ${MY_BIN_PATH}
        RUNTIME_OUTPUT_DIRECTORY_DEBUG    ${MY_BIN_PATH}/DEBUG
        RUNTIME_OUTPUT_DIRECTORY_RELEASE  ${MY_BIN_PATH}/RELEASE
)


set(PROG_3_40   lex0340)
FLEX_TARGET( ${PROG_3_40} example3.40.l
        ${MY_BIN_PATH}/${PROG_3_40}.c
)
add_executable(${PROG_3_40}
        ${MY_BIN_PATH}/${PROG_3_40}.c
)
set_target_properties(${PROG_3_40} PROPERTIES
        RUNTIME_OUTPUT_DIRECTORY          ${MY_BIN_PATH}
        RUNTIME_OUTPUT_DIRECTORY_DEBUG    ${MY_BIN_PATH}/DEBUG
        RUNTIME_OUTPUT_DIRECTORY_RELEASE  ${MY_BIN_PATH}/RELEASE
)


set(PROG_3_41   lex0341)
FLEX_TARGET( ${PROG_3_41}   example3.41.l
        ${MY_BIN_PATH}/${PROG_3_41}.c
)
add_executable(${PROG_3_41}
        ${MY_BIN_PATH}/${PROG_3_41}.c
)
set_target_properties(${PROG_3_41} PROPERTIES
        RUNTIME_OUTPUT_DIRECTORY          ${MY_BIN_PATH}
        RUNTIME_OUTPUT_DIRECTORY_DEBUG    ${MY_BIN_PATH}/DEBUG
        RUNTIME_OUTPUT_DIRECTORY_RELEASE  ${MY_BIN_PATH}/RELEASE
)
